<?php

namespace fq\request\param;


/**
 * API CODE: analyze.clipboard
 *
 * @author auto create
 * @since 1.0, 2021.09.09
 */
class AnalyzeClipboard
{

	private $content, $is_change;
	private $apiParas = array();

	public function getApiInterfaceName()
	{
		return "analyze.clipboard";
	}

	public function getApiMethodName()
	{
		return "POST";
	}

	/**
	 * 待识别文案。
	 * @param $content
	 */
	public function setContent($content)
	{
		$this->content = $content;
		$content && $this->apiParas["content"] = $content;
	}

	/**
	 * 是否转换口令或分享链接
	 *    0:否(默认)
	 *    1:是
	 * @param $is_change
	 */
	public function setIsChange($is_change)
	{
		$this->is_change = $is_change;
		$is_change && $this->apiParas["is_change"] = $is_change;
	}


	/**
	 * 好单库授权的淘宝昵称(urlencode后传入)
	 * @param $tb_name
	 */
	public function setTbName($tb_name)
	{
		$tb_name && $this->apiParas['tb_name'] = $tb_name;
	}

	/**
	 * 淘宝PID
	 * @param $tb_pid
	 */
	public function setTbPid($tb_pid)
	{
		$tb_pid && $this->apiParas['tb_pid'] = $tb_pid;
	}


	/**
	 * 淘宝关系ID
	 * @param $tb_rid
	 */
	public function setTbRid($tb_rid)
	{
		$tb_rid && $this->apiParas['tb_rid'] = $tb_rid;
	}


	/**
	 * 京东联盟ID
	 * @param $jd_union_id
	 */
	public function setJdUnionId($jd_union_id)
	{
		$jd_union_id && $this->apiParas['jd_union_id'] = $jd_union_id;
	}


	/**
	 * 京东PID
	 * @param $jd_pid
	 */
	public function setJdPid($jd_pid)
	{
		$jd_pid && $this->apiParas['jd_pid'] = $jd_pid;
	}


	/**
	 * 多多进宝ID
	 * @param $pdd_union
	 */
	public function setPddUnion($pdd_union)
	{
		$pdd_union && $this->apiParas['pdd_union'] = $pdd_union;
	}

	/**
	 * 多多进宝PID
	 * @param $pdd_pid
	 */
	public function setPddPid($pdd_pid)
	{
		$pdd_pid && $this->apiParas['pdd_pid'] = $pdd_pid;
	}

	public function getApiParas()
	{
		return $this->apiParas;
	}

	public function check()
	{

	}

	public function putOtherTextParam($key, $value)
	{
		$this->apiParas[$key] = $value;
		$this->$key = $value;
	}
}
